home *** CD-ROM | disk | FTP | other *** search
/ IRIX Installation Tools & Overlays 2002 November / SGI IRIX Installation Tools & Overlays 2002 November - Disc 4.iso / dist / motif21_dev.idb / usr / Motif-2.1 / include / Xm / Notebook.h.z / Notebook.h
C/C++ Source or Header  |  2002-10-15  |  2KB  |  78 lines

  1. /* $XConsortium: Notebook.h /main/5 1995/07/15 20:53:41 drk $ */
  2. /*
  3.  *  @OSF_COPYRIGHT@
  4.  *  COPYRIGHT NOTICE
  5.  *  Copyright (c) 1990, 1991, 1992, 1993 Open Software Foundation, Inc.
  6.  *  ALL RIGHTS RESERVED (MOTIF). See the file named COPYRIGHT.MOTIF for
  7.  *  the full copyright text.
  8.  */
  9. /*
  10.  * HISTORY
  11.  */
  12.  
  13. #ifndef _XmNotebook_h
  14. #define _XmNotebook_h
  15.  
  16. #include <Xm/Xm.h>
  17.  
  18. #ifdef __cplusplus
  19. extern "C" {
  20. #endif
  21.  
  22. externalref WidgetClass xmNotebookWidgetClass;
  23.  
  24. typedef struct _XmNotebookClassRec *XmNotebookWidgetClass;
  25. typedef struct _XmNotebookRec *XmNotebookWidget;
  26.  
  27.  
  28. /************************************************************************
  29.  *  Notebook Defines
  30.  ************************************************************************/
  31.  
  32. /* XmNotebookPageStatus */
  33. typedef enum
  34. {
  35.     XmPAGE_FOUND,        /* page widget found */
  36.     XmPAGE_INVALID,        /* page number out of the range */
  37.     XmPAGE_EMPTY,        /* no page widget found */
  38.     XmPAGE_DUPLICATED        /* there are more than one page widgets */
  39. } XmNotebookPageStatus;
  40.  
  41. /* Notebook page information structure */
  42. typedef struct
  43. {
  44.     int         page_number;
  45.     Widget      page_widget;
  46.     Widget    status_area_widget;
  47.     Widget      major_tab_widget;
  48.     Widget    minor_tab_widget;
  49. } XmNotebookPageInfo;
  50.  
  51.  
  52. /************************************************************************
  53.  *  Public Functions
  54.  ************************************************************************/
  55.  
  56. #ifndef XmIsNotebook
  57. #define XmIsNotebook(w) XtIsSubclass((w), xmNotebookWidgetClass)
  58. #endif
  59.  
  60. extern Widget XmCreateNotebook(
  61.             Widget        parent,
  62.             String        name,
  63.             ArgList        arglist,
  64.             Cardinal    argcount);
  65.  
  66. extern XmNotebookPageStatus XmNotebookGetPageInfo(
  67.             Widget notebook,
  68.             int page_number,
  69.             XmNotebookPageInfo *page_info) ;
  70.  
  71.  
  72. #ifdef __cplusplus
  73. }
  74. #endif
  75.  
  76. #endif /* _XmNotebook_h  */
  77.  
  78.